home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / yase.arc / FCB.H < prev    next >
Text File  |  1986-12-13  |  1KB  |  33 lines

  1. ******************************************************************
  2. * COPYRIGHT (C) 1986 by Donald Krantz and James Stanley
  3. * - Note: This is a real, live, actual, registered copyright,
  4. *   and should be treated as such. This source code is from
  5. *   the book "68000 Assembly Language", Krantz and Stanley,
  6. *   Addison-Wesley Publishing Company, Reading, MA, 1986.
  7. *   Permission granted by the authors for non-commercial use
  8. *   in programs released to the public domain, as long as this
  9. *   copyright notice remains attached and visible.
  10. *
  11. *****************************************************************
  12. *  FCB Header File - CP/M-68K File Control Block information
  13. *
  14. drive    equ    0        * Drive Byte offset
  15. name    equ    1        * First name char offset
  16. type    equ    9        * First type char offset
  17. extent    equ    12        * Extent byte offset
  18. s2    equ    14        * S2 byte offset
  19. reccnt    equ    15        * Record Count byte offset
  20. currec    equ    32        * Current record byte offset
  21. r_zero    equ    33        * R0 Random Record Number offset
  22. r_one    equ    34        * R1/R2 Random Record # offset
  23.  
  24. fcb_sz    equ    36        * sizeof( file control block )
  25. *
  26. *****************************************************************
  27. *  File Control Block Extensions for file utilities
  28. curchr    equ    36        * Offset to current char word
  29. dirty    equ    38        * Offset to dirty flag
  30. dma_buf    equ    40        * Offset to DMA buffer
  31. file    equ    168        * sizeof( extended FCB )
  32.